﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EzDesk.MVVMBase;
using EzDesk.DesktopClient.ViewContract;
using EzDesk.Client.Utility;
using System.Windows;
using EzDesk.Generic.WPF;
using EzDesk.DesktopClient.Event;
using EzDesk.DesktopClient.MVVMEnhance;

namespace EzDesk.DesktopClient.ViewModel
{
    public class ContentTabViewModel : ViewModelWithSingleContainer<IContentTabView>
    {
        private FeedViewModel _feedViewModel;

        public FeedViewModel FeedViewModel
        {
            get
            {
                _feedViewModel = _feedViewModel ?? new FeedViewModel();

                return _feedViewModel;
            }
            set
            {
                _feedViewModel = value;
                RaisePropertyChanged("FeedViewModel");
            }
        }

        private AppTaskViewModel _appTaskViewModel;

        public AppTaskViewModel AppTaskViewModel
        {
            get
            {
                _appTaskViewModel = _appTaskViewModel ?? new AppTaskViewModel();

                return _appTaskViewModel;
            }
            set
            {
                _appTaskViewModel = value;
                RaisePropertyChanged("AppTaskViewModel");
            }
        }

        public ContentTabViewModel()
            : base()
        {
        }
    }
}
